package za.org.jcicada.comms.impl.stub;

import java.io.IOException;
import java.net.URI;

import za.org.jcicada.comms.IAcceptListener;
import za.org.jcicada.comms.IConnection;
import za.org.jcicada.comms.impl.AcceptorBase;

public class StubAcceptor extends AcceptorBase {

    public StubAcceptor(IAcceptListener acceptListener) {
        super(acceptListener);
    }

    public void connect(IConnection clientQueue) throws IOException {
    }

    @Override
    public URI getBaseLocationURI() {
        return URI.create(String.format("%s://local", getProtocol()));
    }

    @Override
    public String getProtocol() {
        return "stub";
    }
    
    @Override
    public boolean isClosed() {
    	return false;
    }

}
